package com.htthorizon.powersupply.controller;

import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.htthorizon.powersupply.domain.TgUserSensitive;
import com.htthorizon.powersupply.service.TgUserSensitiveService;
import com.htthorizon.powersupply.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Brilliant
 */
@RestController
@RequestMapping("/tgUserSensitive")
public class TgUserSensitiveController {

    @Autowired
    private TgUserSensitiveService tgUserSensitiveService;

    @GetMapping("/get")
    public R<List<TgUserSensitive>> list(){
        return R.ok(tgUserSensitiveService.listSensitiveAll());
    }

    @GetMapping("/deal")
    public R<String> deal(){
        tgUserSensitiveService.deal();
        return R.ok("success");
    }
}
